<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <jsp:useBean id="dao" class="dao.SectionImpl" scope="request"/>
  	<%@ page import="java.util.*,java.text.*"%>
  	<%@ page import="dao.*" %>
  	<jsp:include page="editsection.jsp"></jsp:include>
<!DOCTYPE html >
<html>
<head>
<style type="text/css">
.div1{
margin-left:10%;
}
td{
width:120px;
background:#ffcc66 ;
}

</style>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查询结果</title>
</head>
<body>
<div class="div1">

	<table >
	<tr><td></td><td>编号</td><td>名称</td><td>类型</td><td>成立时间</td></tr>
<%
	request.setCharacterEncoding("utf-8");
	String id=request.getParameter("id");
	String name=request.getParameter("name");
	String type=request.getParameter("type");
    List list=dao.find(id,name,type);
	Section section=null;
	for(int i=0;i<list.size();i++){
		section=(Section)list.get(i);	                             %>
		
		<tr>
		<td><input type="checkbox" name="ck" value="<%=section.getId()%>"></td>
		<td><a href="servlet/EditSection?id=<%=section.getId()%>"><%=section.getId()%></a></td>
			<td><%=section.getName() %></td>
			<td><%=section.getType() %></td>
			<td><%=section.getFtime() %></td>
		</tr>
	     
	    
	   
	<% 
	}
	%>
	</table>
	

</div>
	
	

</body>
</html>